package com.solution.admin.promotion.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.promotion.entity.PromotionRuleDiscountEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 活动规则-折扣信息DAO接口
 * @author xu_cc
 * @date 2017-09-27 23:27:27
 */
public interface PromotionRuleDiscountDao extends BaseDao<PromotionRuleDiscountEntity> {
	
	/**
	 * 保存活动规则-折扣信息
	 * @param promotionRuleDiscountEntity
	 * @return
	 * @author xu_cc
	 * @date 2017-09-27 23:27:27
	 */
	public long savePromotionRuleDiscount(PromotionRuleDiscountEntity promotionRuleDiscountEntity);

	/**
	 * 分页查询活动规则-折扣信息信息
	 * @param pageParam 分页对象
	 * @param promotionRuleDiscount 分页参数
	 * @return PageBean 分页参数及数据
	 * @author xu_cc
	 * @date 2017-09-27 23:27:27
	 */
	public PageBean listPromotionRuleDiscountPage(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新活动规则-折扣信息
	 * @param promotionRuleDiscountEntity
	 * @return
	 * @author xu_cc
	 * @date 2017-09-27 23:27:27
	 */
	public int updatePromotionRuleDiscount(PromotionRuleDiscountEntity promotionRuleDiscountEntity);


	/**
	 * 删除活动规则-折扣信息角色
	 * @param id
	 * @return
	 * @author xu_cc
	 * @date 2017-09-27 23:27:27
	 */
	public int deleteById(Long promotionId);
	
	/**
	 * 根据活动规则-折扣信息类型获取活动规则-折扣信息
	 * @param param
	 * @return
	 * @author xu_cc
	 * @date 2017-09-27 23:27:27
	 */
	public List<PromotionRuleDiscountEntity> listPromotionRuleDiscount(Long promotionId);
}
